Method: Integer#<<
- Defined in:
- numeric.c
#<<(count) ⇒ Integer
Returns int
shifted left count
positions, or right if count
is negative.
4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 |
# File 'numeric.c', line 4551
VALUE
rb_int_lshift(VALUE x, VALUE y)
{
if (FIXNUM_P(x)) {
return rb_fix_lshift(x, y);
}
else if (RB_TYPE_P(x, T_BIGNUM)) {
return rb_big_lshift(x, y);
}
return Qnil;
}
|